import Vue from 'vue'
import Router from 'vue-router'
import test from '@/components/Test'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'map',
      component: () => import(/* webpackChunkName: "fail" */ '@/views/map/GlMap'),
      meta: {
        title: 'Locust Monitor WebGIS'
      }
    }, {
      path: '/test',
      name: 'Test',
      component: test
    }, /* {
      path: '/map',
      component: () => import(/!* webpackChunkName: "fail" *!/ '@/views/map/MapboxMap')
    }, */ {
      path: '/map2',
      component: () => import(/* webpackChunkName: "fail" */ '@/views/map/GlMap')
    }, {
      path: '*',
      component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
    }
  ]
})
